package lolbatfsm.system;

import java.io.Serializable;

/**
 * It is one of the states of a <code>FSM</code> object.
 * @author Matteo Battaglio <madbat87@gmail.com>
 */
public class State implements Serializable {

    private final String name;

    /**
     * Instantiates a new <code>State</code> instance
     * @param name
     */
    public State(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    @Override
    public String toString() {
        return name;
    }

}
